<template>
  <div class="list">
    <div class="shop" v-for="(item,index) in list" :key="index">
        <div class="imgbox">
            <img :src="item.pic" alt="">
        </div>
        <div class="text">
            <div class="name">{{item.name}}</div>
            <div class="saled">月售 {{item.saled}} 件</div>
        </div>
    </div>
  </div>
</template>

<script>
var pic = 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fblog%2F202102%2F26%2F20210226073347_50f94.thumb.1000_0.jpeg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668240950&t=a5e75c663474fbf7b874b9e7a9324adf';
export default {
    data(){
        return {
            list:[
                {pic,name:'烤鸭店',saled:888},
                {pic,name:'饺子馆',saled:9999},
                {pic,name:'烤馍店',saled:7777},
            ]
        }
    }
}
</script>

<style lang='scss' scoped>
.list .shop{
    margin: 10px;
    display: flex;
}
.list .shop .imgbox{
    width: 80px;
    margin-right: 10px;
}
.list .shop .imgbox img{
    width: 100%;
}
.list .shop .text{
    flex: 1;
    font-size: 14px;
}
.list .shop .text .name{
    font-weight: bold;
}
</style>